<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<h2>등록하신 객실의 상세정보입니다.</h2>
<table border="1" cellspacing="0" width="700" cellpadding="10" bgcolor="#FFFAF0">
<tr>
<td width="200">방번호</td><td width="500">${requestScope.rdto.roomNo }</td></tr>
<tr>
<td>객실 종류</td><td>${requestScope.rdto.property.propertyTypeContents }</td></tr>
<tr>
<td>랜트범위</td><td>${requestScope.rdto.privacy.privacyContents }</td></tr>
<tr>
<td>숙박가능인원</td><td>${requestScope.rdto.accommodates }</td></tr>
<tr>
<td>침실수</td><td>${requestScope.rdto.bedrooms }</td></tr>
<tr>
<td>제목</td><td>${requestScope.rdto.title }</td></tr>
<tr>
<td>설명</td><td>${requestScope.rdto.description }</td></tr>
<tr>
<td>휴대폰번호</td><td>${requestScope.rdto.phone }</td></tr>
<tr>
<td>국가</td><td>${requestScope.rdto.nation }</td></tr>
<tr>
<td>우편번호</td><td>${requestScope.rdto.address.zipcode }</td></tr>
<tr>
<td>시/도</td><td>${requestScope.rdto.address.sido }</td></tr>
<tr>
<td>구/군</td><td>${requestScope.rdto.address.gugun }</td></tr>
<tr>
<td>동</td><td>${requestScope.rdto.address.dong }</td></tr>
<tr>
<td>상세주소</td><td>${requestScope.rdto.addDetail }</td></tr>
<tr>
<td>1일 기준 가격($)</td><td>${requestScope.rdto.price1 }</td></tr>
<tr>
<td>7일 기준 가격($)</td><td>${requestScope.rdto.price7 }</td></tr>
<tr>
<td>30일 기준 가격($)</td><td>${requestScope.rdto.price30 }</td></tr>
<tr>
<td>체크인 시간</td><td>${requestScope.rdto.checkInTime }</td></tr>
<tr>
<td>체크아웃 시간</td><td>${requestScope.rdto.checkOutTime }</td></tr>
<tr>
<td>환불정책</td><td>${requestScope.rdto.refund.refundPolicyContents }</td></tr>
</table>
<p>
<h4>객실 사진</h4>
	<c:forEach items="${requestScope.flist }" var="fdto" varStatus="cnt">				
		<c:choose>
			<c:when test="${cnt.count==1 }">
				<img  width="600px" height="400px" src="/Project_homeshare_room/uproomfile/${fdto.fileName }"><br>
			</c:when>
			<c:otherwise>
				<img  width="300px" height="200px" src="/Project_homeshare_room/uproomfile/${fdto.fileName }">
			</c:otherwise>
		</c:choose>
	</c:forEach><br>


<%-- <a href='modifymenu.do?roomNo=${requestScope.rdto.roomNo }'>방정보수정</a>
<a href="roominput.do">방등록 페이지로..</a>
<a href='/Project_homeshare_room/deleteRoom.do?roomNo=${requestScope.rdto.roomNo }&memberId=${requestScope.rdto.memberId }'>등록한 방 삭제</a>
<a href='/Project_homeshare_room/myRoomList.do?memberId=${requestScope.rdto.memberId }'>내가등록한 방목록</a>
 --%>
</body>
</html>